package com.xm.settlement.service;

import com.baomidou.framework.service.ISuperService;
import com.xm.settlement.commons.base.ApiSQLException;
import com.xm.settlement.commons.shiro.ShiroUser;
import com.xm.settlement.commons.utils.PageInfo;
import com.xm.settlement.model.AppUser;
import com.xm.settlement.model.vo.AppUserVo;

import java.io.UnsupportedEncodingException;
import java.net.URISyntaxException;
import java.util.List;

/**
 * Created by Administrator on 2017/2/7.
 */
public interface AppUserService extends ISuperService<AppUser> {

    void selectDataGrid(PageInfo pageInfo, Long lid) ;

    void insertAppUser(AppUserVo appUserVo, Long lid) throws InterruptedException, UnsupportedEncodingException, URISyntaxException,ApiSQLException;

    void insertAppuserByExcel(String filePath,String fileName) throws ApiSQLException;

    //--------------------------------------------------------------
    //--------  service     **************************************
    //--------------------------------------------------------------

    List<AppUserVo> selectUserVoList();

    List<AppUserVo> getChildrenNodeByParentVipCode(String vip_code);

    /**
     * 根据当前信息检索数据
     * */
    List<AppUserVo> selectUserVoListByParam(AppUserVo appUserVo);


    List selectDataGridTree(String   vipCode,Long userId);

    void insertAccount(AppUserVo appUserVo, ShiroUser user)throws InterruptedException, UnsupportedEncodingException, URISyntaxException, ApiSQLException;

    void updateappEditOrigin(String vipCode, String organizationId);
}
